#define  _CRT_SECURE_NO_WARNINGS 1

#include "cir_queue.h"

int main()
{
	CirQueue cq;
	CirQueueInit(&cq);
	CirQueuePush(&cq, 1);
	CirQueuePush(&cq, 2);
	CirQueuePush(&cq, 3);
	CirQueuePush(&cq, 4);
	CirQueuePush(&cq, 5);
	CirQueuePush(&cq, 6);
	CirQueuePush(&cq, 7);
	CirQueuePush(&cq, 8);
	CirQueuePush(&cq, 9);
	
	printf("size: %d\n", CirQueueSize(&cq));
	printf("front: %d\n", CirQueueFront(&cq));
	printf("back: %d\n",CirQueueBack(&cq));
	while (!CirQueueIsEmpty(&cq))
	{
		printf("%d ", CirQueueFront(&cq));
		CirQueuePop(&cq);
	}
	printf("size: %d\n", CirQueueSize(&cq));
	printf("front: %d\n", CirQueueFront(&cq));
	printf("back: %d\n", CirQueueBack(&cq));
	return 0;
}
